package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.system.domain.vo.UploadFile;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 【请填写功能名称】对象 om_duty
 *
 * @author ruoyi
 * @date 2023-11-20
 */
@Data
public class OmDuty extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Integer id;

    private Integer deptId;

    private List<Integer> deptIdList;

    /**
     * 任务名
     */
    @Excel(name = "任务名")
    private String name;

    /**
     * 预计完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completeTime;
    private Date trueComplete;

    /**
     * 是否完成0：否；1：是
     */
    @Excel(name = "是否完成0：否；1：是")
    private String enableMark;

    private Integer parentId;

    private String remark;

    private boolean isAccept = false;

    private List<UploadFile> file;

    private List<OmDuty> children;

    private List<String> dateTime;

    private String dateTimeBefore;

    private String dateTimeAfter;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setEnableMark(String enableMark) {
        this.enableMark = enableMark;
    }

    public String getEnableMark() {
        return enableMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName()).append("completeTime", getCompleteTime()).append("enableMark", getEnableMark()).toString();
    }
}
